package com.tencent.wxcloudrun.vo.response.wx;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Ryan Zhao
 *         <p>
 *         Copyright: Copyright (c) 2023
 *         </p>
 * @version 1.0
 * @date 2023-08-29 14:55
 * @description: 微信下载文件请求出参
 */
@NoArgsConstructor
@Data
@ApiModel(value = "WxDownloadfileResponse", description = "微信下载文件请求出参")
public class WxDownloadfileResponse {

    @JsonProperty("errcode")
    private Integer errcode;

    @JsonProperty("errmsg")
    private String errmsg;

    @ApiModelProperty("文件列表")
    @JsonProperty("file_list")
    private List<ResFileInfoDTO> file_list;

    @NoArgsConstructor
    @Data
    public static class ResFileInfoDTO {

        @ApiModelProperty("文件ID")
        @JsonProperty("fileid")
        private String fileid;

        @ApiModelProperty("下载链接")
        @JsonProperty("download_url")
        private String download_url;

        @ApiModelProperty("状态码")
        @JsonProperty("status")
        private String status;

        @ApiModelProperty("该文件错误信息")
        @JsonProperty("errmsg")
        private String errmsg;

    }

}
